import React from 'react';
// import logo from './logo.svg';
import PrivateRoute from './components/PrivateRoute'
import './App.css';
import { Switch, Route, withRouter } from 'react-router-dom'
import Login from './views/login/loginForm'
import Index from './router/Index'


@withRouter
// eslint-disable-next-line no-undef
class App extends React.Component {
  render() {
    return (
      <Switch>
        <Route path='/login' component={Login} />
        <PrivateRoute path='/' component={Index}/>
      </Switch>
    )
  }
}
export default App


